
# from wsgiref.simple_server import make_server
from flask_cors import CORS
from flask_script import Manager
from flask_migrate import Migrate
from public.db import db
from controller import create_app

app = create_app()


CORS(app, supports_credentials=True)


manager = Manager(app)


Migrate(app, db)


if __name__ == '__main__':
    manager.run()

    # app = create_app()
    # server = make_server(host='127.0.0.1', port=5000, app=app)
    # server.serve_forever()
    # # manager.run()

